package org.wgc.study.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 *
 * </p>
 *
 * @author wgc
 * @since 2025-08-06
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("bloginfo")
public class Bloginfo extends Model<Bloginfo> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 博客作者标识
     */
    @TableField("blogAuthor")
    private String blogAuthor;

    /**
     * 博客链接
     */
    @TableField("blogUrl")
    private String blogUrl;

    /**
     * 博客标题
     */
    @TableField("blogTitle")
    private String blogTitle;

    /**
     * 博客栏目
     */
    @TableField("blogItem")
    private String blogItem;


    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
